home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / flut39st.zoo / fileutils-3.9 / lib / Makefile < prev   
Encoding:
Makefile  |  1994-03-26  |  3.5 KB  |  127 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for library files used by GNU fileutils.
  3. # Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = /bin/sh
  20.  
  21. srcdir = .
  22. VPATH = .
  23.  
  24. CC = gcc
  25. AR = ar
  26. RANLIB = ranlib
  27. DEFS = -DCONFIG_BROKETS -DHAVE_CONFIG_H
  28. CFLAGS = -O2 -fomit-frame-pointer -mpcrel
  29. # CFLAGS = -g
  30. YACC = bison -y
  31.  
  32. prefix = /usr/local
  33. exec_prefix = $(prefix)
  34. libdir = $(exec_prefix)/lib
  35.  
  36. SOURCES = getdate.y posixtm.y \
  37. argmatch.c backupfile.c basename.c dirname.c eaccess.c \
  38. error.c filemode.c fsusage.c getopt.c getopt1.c \
  39. getversion.c idcache.c isdir.c makepath.c \
  40. modechange.c mountlist.c savedir.c \
  41. stripslash.c xgetcwd.c xmalloc.c xstrdup.c userspec.c yesno.c \
  42. fileblocks.c fnmatch.c ftruncate.c mkdir.c mktime.c rename.c stpcpy.c \
  43. strdup.c strstr.c alloca.c
  44.  
  45. OBJECTS = getdate.o posixtm.o \
  46. argmatch.o backupfile.o basename.o dirname.o eaccess.o \
  47. error.o filemode.o getopt.o getopt1.o \
  48. getversion.o idcache.o isdir.o makepath.o \
  49. modechange.o savedir.o \
  50. stripslash.o xgetcwd.o xmalloc.o xstrdup.o userspec.o yesno.o \
  51. fsusage.o mountlist.o fnmatch.o stpcpy.o 
  52.  
  53. DISTFILES = Makefile.in backupfile.h getopt.h modechange.h \
  54. fnmatch.h fsusage.h mountlist.h pathmax.h system.h $(SOURCES)
  55.  
  56. all: libfu.a
  57.  
  58. .c.o:
  59.     $(CC) -c $(CPPFLAGS) $(DEFS) -I.. -I$(srcdir) $(CFLAGS) $<
  60.  
  61. install: all
  62.  
  63. uninstall:
  64.  
  65. TAGS: $(SOURCES)
  66.     etags $(SOURCES)
  67.  
  68. check:
  69.  
  70. clean:
  71.     rm -f *.a *.o
  72.  
  73. mostlyclean: clean
  74.  
  75. distclean: clean
  76.     rm -f Makefile *.tab.c getdate.c *posixtm.c
  77.  
  78. realclean: distclean
  79.     rm -f TAGS
  80.  
  81. dist: $(DISTFILES)
  82.     for file in $(DISTFILES); do \
  83.       ln $$file ../`cat ../.fname`/lib \
  84.         || cp -p $$file ../`cat ../.fname`/lib; \
  85.     done
  86.  
  87. libfu.a: $(OBJECTS)
  88.     rm -f $@
  89.     $(AR) cr $@ $(OBJECTS)
  90.     -$(RANLIB) $@
  91.  
  92. # Since this directory contains two parsers, we have to be careful to avoid
  93. # running two $(YACC)s during parallel makes.  See below.
  94. getdate.c: getdate.y
  95.     @echo expect 9 shift/reduce conflicts
  96.     $(YACC) $(srcdir)/getdate.y
  97.     mv y.tab.c getdate.c
  98.  
  99. # Make the rename atomic, in case sed is interrupted and later rerun.
  100. # The artificial dependency on getdate.c keeps the two parsers from being
  101. # built in parallel.  Enforcing this little bit of sequentiality lets
  102. # everyone (even those without bison) still run mostly parallel builds.
  103. posixtm.c: posixtm.y getdate.c
  104.     $(YACC) $(srcdir)/posixtm.y
  105.     mv y.tab.c posixtm.tab.c
  106.     sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
  107.     mv tposixtm.c posixtm.c
  108.     rm -f posixtm.tab.c
  109.  
  110. rename.o: rename.c
  111.     $(CC) -c $(CPPFLAGS) -DMVDIR="\"$(libdir)/mvdir\"" $(DEFS) \
  112.         -I.. -I$(srcdir) $(CFLAGS) $(srcdir)/rename.c
  113.  
  114. $(OBJECTS): ../config.h
  115.  
  116. backupfile.o getversion.o: backupfile.h
  117. fnmatch.o: fnmatch.h
  118. fsusage.o: fsusage.h
  119. getopt1.o: getopt.h
  120. modechange.o: modechange.h
  121. mountlist.o: mountlist.h
  122. xgetcwd.o: pathmax.h
  123.  
  124. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  125. # Otherwise a system limit (for SysV at least) may be exceeded.
  126. .NOEXPORT:
  127.